<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<base href="<%=basePath%>">
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>用户注册</title>
	<!--favicon -->
		<link rel="icon" href="favicon.ico" type="image/x-icon"/>

		<!--Bootstrap.min css-->
		<link rel="stylesheet" href="assets/plugins/bootstrap/css/bootstrap.min.css">
		
		<!--Icons css-->
		<link rel="stylesheet" href="assets/css/icons.css">

		<!--Style css-->
		<link rel="stylesheet" href="assets/css/style.css">

		<!--mCustomScrollbar css-->
		<link rel="stylesheet" href="assets/plugins/scroll-bar/jquery.mCustomScrollbar.css">

		<!--Sidemenu css-->
		<link rel="stylesheet" href="assets/plugins/toggle-menu/sidemenu.css">
		<script type="text/javascript">
  		
  		function check() {
  			var name = document.form1.username.value;
			var password = document.form1.password.value;
			var tel = document.form1.phone.value;
			
			var reg_tel = /\D/;
	 		if (name == "") {
				alert("用户名不能为空");
				document.form1.username.focus();
				return false;
			}
			if (password == "") {
				alert("密码不能为空");
				document.form1.password.focus();
				return false;
			}
			if (tel == "") {
				alert("电话不能为空");
				document.form1.phone.focus();
				return false;
			}
			if (reg_tel.test(tel) || tel.length != 11) {
				alert("电话号码格式错误 ");
				document.form1.phone.value = "";
				document.form1.phone.focus();
				return false;
			}
			return true;
		}

		</script>
	</head>
	<body class="bg-primary">
		<div id="app">
			<section class="section">
				<div class="container">
					<div class="row">
						<div class="single-page construction-bg single-pageimage cover-image" data-image-src="assets/img/news/img14.jpg">
							<div class="row">
								<div class="col-lg-6">
									<div class="wrapper wrapper2">
										<form   id="form1" name="form1" action="user_breg.action" method="post" onSubmit="return check();" class="card-body" tabindex="500">
											
		
					
				
					<input name="user.status" value="0" type="hidden" />
						
						
					
										
										
										
											<input name="util.t" type="hidden" value="user" />
											<h3>用户注册</h3>
											<font color="#FF00FF">${message}</font>
											
											帐&nbsp;&nbsp;&nbsp;&nbsp;号：
											<input name="user.username" value="${user.username }" type="text" id="username" />
												
										
										密&nbsp;&nbsp;&nbsp;&nbsp;码：
												<input name="user.password" type="password" id="password" />
												
										
												姓&nbsp;&nbsp;&nbsp;&nbsp;名：
						<input name="user.name" id="name" type="text"  />
						电&nbsp;&nbsp;&nbsp;&nbsp;话：
						<input name="user.phone" type="text" id="phone"  />
						Q&nbsp;&nbsp;&nbsp;&nbsp;Q：
						<input name="user.qqnum" type="text"  id="qqnum" />
								地&nbsp;&nbsp;&nbsp;&nbsp;址：
						<input name="user.address" type="text"  id="address" />
				
											<div class="submit">
											<input type="submit" value=" 同 意  " class="btn btn-primary btn-large login" id="teds" onClick="return check();"/>
												
											</div>
											<p class="text-dark mb-0">已有账号?<a href="login.jsp" class="text-primary ml-1">登录</a></p>
											
										</form>
									
									</div>
								</div>
								<div class="col-lg-6">
									<div class="log-wrapper text-center">
									
										<img src="assets/img/brand/logo-white.png" class="mb-2 mt-4 mt-lg-0 " alt="logo">
										<p>欢迎使用校园环境卫生与设施故障管理系统</p>
										<a class="btn btn-primary mt-3" href="#"></a>
									</div>
								</div>
							</div>
						</div>	
					</div>
				</div>
			</section>
		</div>

		<!--Jquery.min js-->
		<script src="assets/js/jquery.min.js"></script>

		<!--popper js-->
		<script src="assets/js/popper.js"></script>

		<!--Tooltip js-->
		<script src="assets/js/tooltip.js"></script>

		<!--Bootstrap.min js-->
		<script src="assets/plugins/bootstrap/js/bootstrap.min.js"></script>

		<!--Jquery.nicescroll.min js-->
		<script src="assets/plugins/nicescroll/jquery.nicescroll.min.js"></script>

		<!--Scroll-up-bar.min js-->
		<script src="assets/plugins/scroll-up-bar/dist/scroll-up-bar.min.js"></script>
		<script src="assets/js/moment.min.js"></script>

		<!--mCustomScrollbar js-->
		<script src="assets/plugins/scroll-bar/jquery.mCustomScrollbar.concat.min.js"></script>

		<!--Sidemenu js-->
		<script src="assets/plugins/toggle-menu/sidemenu.js"></script>

		<!--Scripts js-->
		<script src="assets/js/scripts.js"></script>

	</body>
	

</html>